<?php
/*
    |--------------------------------------------------------------------------
    | Application Routes
    |--------------------------------------------------------------------------
    |
    | Here is where you can register all of the routes for an application.
    | It's a breeze. Simply tell Laravel the URIs it should respond to
    | and give it the Closure to execute when that URI is requested.
    |
    */

if (Session::get('lang') && Session::get('lang') !=  App::getLocale()) {
    App::setLocale(Session::get('lang'));
}

Route::get('language/{lang}',
    array(
        'as'    => 'language.select',
        'uses'  => 'LanguageController@select'
    )
);

Route::get('/company', array('as' => 'company',  'uses' => 'Dtu\Company\HomeController@index'));
Route::get('/company/blog.html', array('as' => 'blog',  'uses' => 'Dtu\Company\HomeController@blog'));
Route::get('/company/blog-inner/{id}/{name}.html', array('as' => 'blog-inner',  'uses' => 'Dtu\Company\HomeController@blogInner'));